import React from 'react';
import { useTranslation } from 'react-i18next';
import { Button  } from "antd";
import Zhuti from "../../computed/Zhuti";
function Sorts() {
    const { t, i18n } = useTranslation()
    const qie=()=>{
        i18n.changeLanguage(i18n.language==='zh'?'en':'zh')

    }
    return (
        <div>
            <h1>{t('Hello')}</h1>
            <Button type="primary" onClick={qie}>{i18n.language==='zh'?'中文':'英文'}</Button>
            <Zhuti/>
        </div>
    );
}

export default Sorts;